package com.woniu.supermarket.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.woniu.supermarket.entity.Goods;
import com.woniu.supermarket.entity.Member;
import com.woniu.supermarket.entity.Shop;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@ApiModel(description = "销售详情订单信息")
@Data
@ToString
public class dealVo {
    @ApiModelProperty(value = "id")
    private Integer id;

    //0:销售  1：退货
    @ApiModelProperty(value = "交易类型")
    private Integer typeNum;

    @ApiModelProperty(value = "商品对象")
    private Goods goods;

    @ApiModelProperty(value = "商品名称")
    private String goodsName;

    @ApiModelProperty(value = "业务单号")
    private String bussinessCode;

    @ApiModelProperty(value = "数量")
    private Integer quantity;

    @ApiModelProperty(value = "常规销售价")
    private BigDecimal price;

    @ApiModelProperty(value = "用户购买价")
    private BigDecimal promotedPrice;

    @ApiModelProperty(value = "表单时间详情")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date DetailDateTime;

    @ApiModelProperty(value = "表单时间详情")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date DateTime;

    @ApiModelProperty(value = "商品优惠")
    private String promotionDescription;

    @ApiModelProperty(value = "操作人员")
    private String staff;

    @ApiModelProperty(value = "门店")
    private Shop shop;

    @ApiModelProperty(value = "会员")
    private Member member;
}
